<?php
/**
 * @package EPass
 * @author Oliver Leisalu
 */
class EpassResponse {
	
	private $username;
	
	private $name;
	
	private $isSuccessful = false;
	
	private $errorCode;
	
	public function __construct( $errorCode, $username = NULL, $name = NULL ) {
		$this->username = $username;
		$this->name = $name;
		$this->errorCode = $errorCode;
		if( $this->errorCode === 0 )
			$this->isSuccessful = true;
	}
	
	public function __get( $var ) {
		return $this->$var;
	}
	
}
?>